<script type="text/javascript">

	var rail_user = "<!--{$rail_user}-->";

function exec_php(){

	popup_init( 'PHPrail shell', 'rail_shell.php', 480, 360 );
	//display_popup( 'rail_shell.php', 650, 450 );
}
</script>

<ul id="navigation">
<li><a href="index.php?tpl=portal&rail_login">Am rail anmelden</a></li>
<li><a href="mysqldump.php">rail Backup</a></li>
<li><a href="index.php?tpl=login">neu verbinden</a></li>
<li><a href="index.php?tpl=login&logout">Verbindung trennen</a></li>
</ul>

<ul id="moduls">
<h2>Installierte Module</h2>
<div>
<!--{foreach from=$modules item=module}-->
<script type="text/javascript">
<!--{$module.js}-->
</script>
<li><a href="javascript:loadmodul_<!--{$module.name}-->();" style="background-image: url(<!--{$module.icon}-->);"><!--{$module.name}--></a></li>
<!--{/foreach}-->
</div>
</ul>

<div id="console">
<!--{foreach from=$messages item=message}-->
<p class="<!--{$message.type}-->_message"><!--{$message.messages}--></p>
<!--{/foreach}-->
</div>

<form>
<label>PHP Befehl ausführen</label>
<textarea id="shell">$obj = rail_factory::get_object($rail, 1);
foreach( $obj->get_inventory() as $obj2 ){
    echo $obj2->get_name();
}</textarea>
<br />
<button type="button" onclick="javascript:exec_php();">ausführen</button>
</form>